import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store =  new Vuex.Store({
  state:{
    router:'',
    userState:0
  },
  mutations:{
     ChangeRouter(state,n){
       state.router = n
     },
     ChangeState(state,n){
       state.userState = n
     }
  }
})

export default store